package com.zc.angelica.service;

import cn.hutool.core.lang.tree.Tree;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zc.angelica.entity.ResponseData;
import com.zc.angelica.entity.RoleMenuInfo;

import java.util.List;

/**
 * 角色菜单表(RoleMenuInfo)表服务接口
 *
 * @author makejava
 * @since 2022-04-05 23:54:04
 */
public interface RoleMenuInfoService extends IService<RoleMenuInfo> {

    /**
     * 绑定菜单
     */
    ResponseData bindMenu(RoleMenuInfo roleMenuInfo);

    /**
     * 解绑菜单
     */
    ResponseData unboundMenu(Long roleId, Long menuId);

    /**
     * 获取所有菜单
     */
    ResponseData getAllMenu();

    /**
     * 获取绑定的菜单
     * */
    List<Tree<Object>> getAllbindMenu();
}

